package com.tater.component;

import com.tater.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Component
public class ConsumerComponent {
    @Reference
    HelloService helloService;

    public String callMethod(String name){
        String result = helloService.sayHello(name);
        return result;
    }

    public void methodA(String name){
        helloService.methodA(name);
    }
    public void methodB(String name){
        helloService.methodB(name);
    }
    public void methodC(String name){
        helloService.methodC(name);
    }

}
